package com.chentf.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-08-24 21:01:28
 */
@Configuration
public class BeansConfig {

    /***
     *负载均衡客户端
     * @author chentengfei
     * @date 2021/8/24 21:02
     * @return org.springframework.web.client.RestTemplate
     */
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
